<script>
$(function() {
	solveInputFocus();	// 解决input 不能获取焦点问题
	dataPicker('birthday','${(info.birthday)!''}');
});
</script>
<h3 class="page_title">添加联系人</h3>
<form id="editCommunicationForm">
	<input type="hidden" name="code" value="${(info.code)!''}"/>
	<div class="contentTable form">
		<dl>
			<dt>类型</dt>
			<dd>
				<input type="radio" class="ddRadio" name="type" value="1"<#if !(info??) || info.type == 1>checked="checked"</#if>/> 
				<label style="width:20%; padding:0; font-size:12px; margin:0; font-weight:normal; vertical-align:middle">个人</label>
				<input type="radio" class="ddRadio" name="type" value="2" <#if info?? && (info.type == 2)>checked="checked"</#if>/> 
				<label style="width:20%; padding:0; font-size:12px; margin:0; font-weight:normal; vertical-align:middle">公共</label>
				<input type="radio" class="ddRadio" name="type" value="3" <#if info?? && (info.type == 3)>checked="checked"</#if>/> 
				<label style="width:20%; padding:0; font-size:12px; margin:0; font-weight:normal; vertical-align:middle">公司</label>
			</dd>
		</dl>
		<dl>
			<dt>性别</dt>
			<dd>
				<input type="radio" class="ddRadio" name="sex" value="true"<#if !(info??) || info.sex>checked="checked"</#if>/> 
				<label style="width:20%; padding:0; font-size:12px; margin:0; font-weight:normal; vertical-align:middle">男</label>
				<input type="radio" class="ddRadio" name="sex" value="false" <#if info?? && !(info.sex)>checked="checked"</#if>/> 
				<label style="width:20%; padding:0; font-size:12px; margin:0; font-weight:normal; vertical-align:middle">女</label>
			</dd>
		</dl>
		<dl>
			<dt>姓名</dt>
			<dd>
				<input type="text" name="name" class="form_input radius4" value="${(info.name)!''}"/>
			</dd>
		</dl>
		<dl>
			<dt>电话</dt>
			<dd><input type="text" name="phone" class="form_input radius4" value="${(info.phone)!''}"/></dd>
		</dl>
		<dl>
			<dt>邮箱</dt>
			<dd><input type="text" name="email" class="form_input radius4" value="${(info.email)!''}"/></dd>
		</dl>
		<dl>
			<dt>生日</dt>
			<dd>
				<a href="#" onclick="javascript:clearValue($(this));"></a>
				<input type="text" id="birthday" name="birthday" class="form_input radius4"/>
			</dd>
		</dl>
		<dl>
			<dt>住址</dt>
			<dd><input type="text" name="address" class="form_input radius4" value="${(info.address)!''}"/></dd>
		</dl>
		<dl>
			<dt>公司</dt>
			<dd><input type="text" name="company" class="form_input radius4" value="${(info.company)!''}"/></dd>
		</dl>
		<dl>
			<dt>备注</dt>
			<dd><textarea id="title_applye" name="remark" class="form_input radius4" rows="3"> ${(info.remark)!''}</textarea></dd>
		</dl>
	</div>
</form>
<a class="button_12 blue blue_borderbottom radius4" href="javascript:;" onclick="javascript:save_communication();">保存</a>
<a class="button_12 green green_borderbottom radius4" href="javascript:;" onclick="javascript:sys_load_handl('communication');">取消</a>